package com.eshopkeeper.dao.sys;


import com.eshopkeeper.core.base.BaseMapper;
import com.eshopkeeper.model.sys.SysUser;
import com.eshopkeeper.model.sys.ext.SysUserBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysUserMapper extends BaseMapper<SysUser> {
	
    List<Long> selectIdByMap(@Param("cm") Map<String, Object> params);
    
    int insertSysUser(SysUser sysUser);

	void updateSysUser(Map<String, Object> paramMap);

	List<SysUserBean> selectSysUserByMap(List<Long> ids);

    String getUserName(Map<String, Object> params);

    List<SysUserBean>  getRole(Long id);

    int updateUserRole(SysUser sysUser);

    void updateFace(Map<String, Object> paramMap);

	int resetPassword(SysUser sysUser);

	SysUser queryUserById(Long id);

	/**
	 * 
	 * 
	 * @return
	 * @throws Exception
	 */
	List<Map<String, Object>> getUserList() throws Exception;

	/**
	 * Title:根据userid集合 获取用户的 名称和id
	 * @return
	 * @throws Exception
	 */
	public List<Map<String,Object>> getCheckUser(List<Long> params) throws Exception;
	
}
